#define _CRT_SECURE_NO_WARNINGS
#include<vector>
#include<iostream>

class Solution {
public:
    bool threeConsecutiveOdds(vector<int>& arr) {

        int cnt = 0;
        for (auto e : arr)
        {
            if (e % 2 == 1)
            {
                cnt++;
                if (cnt == 3)
                {
                    return true;
                }
            }
            else
            {
                cnt = 0;
            }
        }
        return false;
    }
};